class AppCheckEntity {
  int? code;
  String? message;
  AppCheckData? data;

  AppCheckEntity({this.code, this.message, this.data});

  AppCheckEntity.fromJson(Map<String, dynamic> json) {
    if (json["code"] is int) this.code = json["code"];
    if (json["message"] is String) this.message = json["message"];
    if (json["data"] is Map)
      this.data = json["data"] == null ? null : AppCheckData.fromJson(json["data"]);
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data["code"] = this.code;
    data["message"] = this.message;
    if (this.data != null) data["data"] = this.data?.toJson();
    return data;
  }
}

class AppCheckData {
  /*
{
  "buildBuildVersion": "7",
  "forceUpdateVersion": "",
  "forceUpdateVersionNo": "",
  "needForceUpdate": false,
  "downloadURL": "https://www.pgyer.com/app/installUpdate/eadca3b919ba9e556a044867c78edfbf?sig=%2BAOGnNijAm23J%2BWuLZ1yoe7uSIjgUWL7LC0UgzMRxjQD%2BAxyI%2BZojjShWTeL55%2BG&forceHttps=",
  "buildHaveNewVersion": false,
  "buildVersionNo": "6",
  "buildVersion": "1.0.5",
  "buildUpdateDescription": "1.添加主题功能，用户可选择不同的主题色；\n2.优化不同主题色的适配问题，防止显示模糊；",
  "appKey": "d73185f4978436484dac5df7f04accb3",
  "buildKey": "eadca3b919ba9e556a044867c78edfbf",
  "buildName": "玩安卓",
  "buildIcon": "https://www.pgyer.com/image/view/app_icons/8ef892fe9699524dd42fd31c818029dc/120",
  "buildFileKey": "eeda015ff20c862a5a4bf9f05d595224.apk",
  "buildFileSize": "15011417"
} 
*/
  String? buildBuildVersion;
  String? forceUpdateVersion;
  String? forceUpdateVersionNo;
  bool? needForceUpdate;
  String? downloadUrl;
  bool? buildHaveNewVersion;
  String? buildVersionNo;
  String? buildVersion;
  String? buildUpdateDescription;
  String? appKey;
  String? buildKey;
  String? buildName;
  String? buildIcon;
  String? buildFileKey;
  String? buildFileSize;

  AppCheckData(
      {this.buildBuildVersion,
      this.forceUpdateVersion,
      this.forceUpdateVersionNo,
      this.needForceUpdate,
      this.downloadUrl,
      this.buildHaveNewVersion,
      this.buildVersionNo,
      this.buildVersion,
      this.buildUpdateDescription,
      this.appKey,
      this.buildKey,
      this.buildName,
      this.buildIcon,
      this.buildFileKey,
      this.buildFileSize});

  AppCheckData.fromJson(Map<String, dynamic> json) {
    if (json["buildBuildVersion"] is String)
      this.buildBuildVersion = json["buildBuildVersion"];
    if (json["forceUpdateVersion"] is String)
      this.forceUpdateVersion = json["forceUpdateVersion"];
    if (json["forceUpdateVersionNo"] is String)
      this.forceUpdateVersionNo = json["forceUpdateVersionNo"];
    if (json["needForceUpdate"] is bool)
      this.needForceUpdate = json["needForceUpdate"];
    if (json["downloadURL"] is String) this.downloadUrl = json["downloadURL"];
    if (json["buildHaveNewVersion"] is bool)
      this.buildHaveNewVersion = json["buildHaveNewVersion"];
    if (json["buildVersionNo"] is String)
      this.buildVersionNo = json["buildVersionNo"];
    if (json["buildVersion"] is String)
      this.buildVersion = json["buildVersion"];
    if (json["buildUpdateDescription"] is String)
      this.buildUpdateDescription = json["buildUpdateDescription"];
    if (json["appKey"] is String) this.appKey = json["appKey"];
    if (json["buildKey"] is String) this.buildKey = json["buildKey"];
    if (json["buildName"] is String) this.buildName = json["buildName"];
    if (json["buildIcon"] is String) this.buildIcon = json["buildIcon"];
    if (json["buildFileKey"] is String)
      this.buildFileKey = json["buildFileKey"];
    if (json["buildFileSize"] is String)
      this.buildFileSize = json["buildFileSize"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data["buildBuildVersion"] = this.buildBuildVersion;
    data["forceUpdateVersion"] = this.forceUpdateVersion;
    data["forceUpdateVersionNo"] = this.forceUpdateVersionNo;
    data["needForceUpdate"] = this.needForceUpdate;
    data["downloadURL"] = this.downloadUrl;
    data["buildHaveNewVersion"] = this.buildHaveNewVersion;
    data["buildVersionNo"] = this.buildVersionNo;
    data["buildVersion"] = this.buildVersion;
    data["buildUpdateDescription"] = this.buildUpdateDescription;
    data["appKey"] = this.appKey;
    data["buildKey"] = this.buildKey;
    data["buildName"] = this.buildName;
    data["buildIcon"] = this.buildIcon;
    data["buildFileKey"] = this.buildFileKey;
    data["buildFileSize"] = this.buildFileSize;
    return data;
  }
}
